package cn.Liujialin.pet.domain;

import cn.Liujialin.basic.domain.BeanDomain;
import cn.Liujialin.org.domain.Shop;
import cn.Liujialin.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends BeanDomain {
    private String name;
    private String resources;
    private BigDecimal saleprice;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;

    private Integer state;
    private BigDecimal costprice;
    private Date createtime;
    private Long type_id;
    private cn.Liujialin.pet.domain.PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    /*private Long adopt_id;*/
    private Long search_master_msg_id;


    private cn.Liujialin.pet.domain.PetDetail detail = new cn.Liujialin.pet.domain.PetDetail();

}
